﻿@model IEnumerable<ITProject.WebUI.Models.Message.MessageInboxViewModel>

@{
    ViewBag.Title = "Inbox";
}

<h2>Odebrane wiadomości</h2>
<br />
@ViewBag.Note
<br />
<table class="inbox">
    <tr>
    <th class="label">Lp.</th>
        <th class="label" width="50%">
            Temat
        </th>
        <th class="label">
            Data wysłania
        </th>
        <th class="label">
            Nadawca
        </th>
        <th class="label">Opcje</th>
    </tr>
@{ int i = 0;}
@foreach (var item in Model) {
    i++;
    <tr>
    <td class="edit">@i</td>
        <td class="edit">
            @Html.DisplayFor(modelItem => item.Subject)
        </td>
        <td class="edit">
            @Html.DisplayFor(modelItem => item.DateOfSend)
        </td>
        <td class="edit">
            @Html.DisplayFor(modelItem => item.Sender)
        </td>
        <td class="edit">
            @Html.ActionLink("Usuń",MVC.Message.ActionNames.Delete, new { messageId=item.Id }) |
            @Html.ActionLink("Pokaż", MVC.Message.ActionNames.Show, new { messageId = item.Id })
        </td>
    </tr>
}

</table>


